package com.zb.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 工单分派网点表
 * </p>
 *
 * @author WEN
 * @since 2024-03-22
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value="ZjWorkDispatchNetwork对象", description="工单分派网点表")
public class ZjWorkDispatchNetwork implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主健ID")
    private Long id;

    @ApiModelProperty(value = "商家ID")
    private Long custAccId;

    @ApiModelProperty(value = "工单ID")
    private Long workId;

    @ApiModelProperty(value = "服务网点ID")
    private Long networkId;

    @ApiModelProperty(value = "状态：1-待接单，2-待派工/已接单，3-待工程师接单，4-服务中，5-待结单(结单告待审核)，6-已完成，7-已取消，8-已拒绝接单，9-已改派")
    private Integer status;

    @ApiModelProperty(value = "是否有转单待审核工单：0-否，1-是")
    @TableField("is_transfer_order_wait_check")
    private Boolean transferOrderWaitCheck;

    @ApiModelProperty(value = "工单派单到网点的时间")
    private Date dispatchTime;

    @ApiModelProperty(value = "网点接单时间")
    private Date receivingOrderTime;

    @ApiModelProperty(value = "网点改派时间")
    private Date changeTime;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date gmtCreate;

    @ApiModelProperty(value = "更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date gmtUpdate;


}
